package com.itany.ums.vo;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

// 描述"结果"的类
@Getter
@Setter
@Accessors(chain = true)
public class Result {
	// 操作结果是成功还是失败
	private boolean success;
	// 操作结果携带信息
	private String message;
	// 操作结果携带任意类型对象
	private Object obj;

	public Result(boolean success, String message) {
		this.success = success;
		this.message = message;
	}

	public Result(boolean success, String message, Object obj) {
		this.success = success;
		this.message = message;
		this.obj = obj;
	}

}
